package com.wicket.okrpbff.biz.service.dto.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffCycleTypeDto
 * @使用场景
 */
@Data
public class BffCycleTypeDto implements Serializable {

    /**
     * 周期类型ID
     */
    @ApiModelProperty("周期类型ID")
    private String cycleTypeId;

    /**
     * 周期类型名称
     */
    @ApiModelProperty("周期类型名称")
    private String cycleTypeName;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Long orderNumber;
    /**
     * 周期类型标识
     */
    @ApiModelProperty("周期类型标识")
    private String cycleTypeCode;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 操作人就职记录ID
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 是否存档 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否存档")
    private String isArchive;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffCycleTypeDto that = (BffCycleTypeDto) o;
      return  cycleTypeId == that.cycleTypeId&&cycleTypeName == that.cycleTypeName&&orderNumber == that.orderNumber&&cycleTypeCode == that.cycleTypeCode&&subjectLifeCycle == that.subjectLifeCycle&&operationInductionId == that.operationInductionId&&userId == that.userId&&isArchive == that.isArchive&&userFace == that.userFace&&idCardName == that.idCardName&&nickName == that.nickName&&operateTime == that.operateTime;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), cycleTypeId,cycleTypeName,orderNumber,cycleTypeCode,subjectLifeCycle,operationInductionId,userId,isArchive,userFace,idCardName,nickName,operateTime);
    }



}
   